<template>
<el-dialog
    :title="title"
    :visible.sync="dlgVisible"
    :close-on-click-modal="false"
    :before-close="()=>handleClose('cancel')"
    width="300px">
    <div>RsDlgTest</div>
    <span slot="footer" class="dialog-footer">
        <el-button @click="handleClose('cancel')">取 消</el-button>
        <el-button type="primary" @click="handleClose('ok')">确 定</el-button>
    </span>
</el-dialog>
</template>
<script>
import dlg from '../mixin/dlg'
export default {
    name:'RsDialogTest',
    mixins:[dlg],
    data(){
        return {
            
        }
    },
    methods:{
        onShow(param){
            this.title = "DlgTest";
            console.log(param)
        },
        onOk(){
            this.closeDialog('ok');
        }
    }
}
</script>